﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MonoTouch.SQLite;

namespace bjeschool_csharp.Model
{
    public class M_HomeWork
    {
        [PrimaryKey, AutoIncrement]
        public int ID { get; set; }
        public int CourseID { get; set; }//课程M_Course
        public string CourseName { get; set; }
        public string Type { get; set; }//作业类型
        public string Title { get; set; }//作业标题
        public int KnowledgeID { get; set; }//关联知识点（可不要）
        public string Knowledge { get; set; }
        public string Request { get; set; }//作业要求
        public DateTime StartTime { get; set; }//布置时间
        public DateTime Deadline { get; set; }//截止时间
        public int PublishTargetID { get; set; }//发布对象(M_Class,M_Group)
        public string PublishTargetType { get; set; }//（课程班-小组）
        public string PublishTarget { get; set; }
    }

	public class M_HomeWorkCommit
    {
		[PrimaryKey, AutoIncrement]
		public int ID { get; set; }
        //作业提交
		public int HomeWorkID { get; set; }//作业(M_HomeWork)
		public string HomeWorkRequest { get; set; }
		public DateTime CommitTime { get; set; }//提交时间
		public int CommitStudentID { get; set; }//提交学生
		public string CommitStudent { get; set; }
		public string CommitTitle { get; set; }
		public string CommitContent { get; set; }

		public string Result { get; set; }//批阅
		public int Sheet { get; set; }//
		public string Grade { get; set; }//
		public DateTime ResultTime { get; set; }//批阅时间
    }
}
